package com.junzhiit.nengji.cms.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.junzhiit.nengji.cms.service.SellSetingService;
import com.junzhiit.nengji.cms.web.vo.ResultVO;
import com.junzhiit.nengji.cms.web.vo.SellSetingVO;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/sell/seting")
public class SellSetingController extends BaseController{

	
	@Autowired
	private SellSetingService sellSetingService;
	
	@ApiOperation(value="获取分销信息")
	@RequestMapping(method=RequestMethod.GET)
	public ResultVO find(){
		return sellSetingService.find();
	}
	
	@ApiOperation(value="更新分销")
	@RequestMapping(method=RequestMethod.PUT)
	public ResultVO update(SellSetingVO sellSetingVO){
		return sellSetingService.update(sellSetingVO);
	}
}
